@extends('layouts.art')

@section('content')

<a class="btn btn-primary" href="/art/create">添加文章 {{$abc}}--{{$b}}</a>


@foreach( $arts as $art)
<div class="panel panel-default">
    <div class="panel-body">
        {{$art->title}}
        <a href="/art/{{$art->id}}" class="btn btn-info">阅读</a>
        <a href="/art/{{$art->id}}/edit" class="btn btn-info">修改</a>

        <form action="/art/{{$art->id}}" method="post" style="display: inline-block;">
            {{csrf_field()}}
            {{ method_field('DELETE') }}

            <button type="submit" class="btn btn-danger">删除</button>
        </form>
    </div>
</div>
@endforeach

{!!$arts->render() !!}

@endsection